package com.iniapp.app.jsf;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;

@Component("credentials")
@Scope("session")
public class Credentials {

	private String username;
	
	private String password;

	@NotNull(message = "user name can not be null.")
	@Size(min=3, max=10, message= "User Name Length must between {min} and {max}.")
	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}
	
	@NotNull(message = "user name can not be null.")
	@Size(min=3, max=10, message= "User Password Length must between {min} and {max}.")
	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}
	
	
}
